// 是和否
export const yesOrNo = [{label: '是', value: '1'}, {label: '否', value: '0'}];
// 启用禁用
export const disabledStatus = [{label: '启用', value: 0}, {label: '禁用', value: 1}];
// 订单状态
export const orderStatusMaps = [
  {
    label: '异常',
    value: 'exception',
    num: 'exceptionNum',
  },
  {
    label: '草稿',
    value: 'draft',
    num: 'draftNum',
  },
  {
    label: '待审核',
    value: 'waitCheck',
    num: 'waitCheckNum',
  },
  {
    label: '下单成功',
    value: 'orderFinish',
    num: 'orderFinishNum',
  },
  {
    label: '约车',
    value: 'bookCar',
    num: 'bookCarNum',
  },
  {
    label: '入仓',
    value: 'inWh',
    num: 'inWhNum',
  },
  {
    label: '装柜',
    value: 'cabinet',
    num: 'cabinetNum',
  },
  {
    label: '报关',
    value: 'declareCustoms',
    num: 'declareCustomsNum',
  },
  {
    label: '开船',
    value: 'sail',
    num: 'shipNum',
  },
  {
    label: '到港',
    value: 'arrivePort',
    num: 'arrivePortNum',
  },
  {
    label: '清关',
    value: 'clearance',
    num: 'clearanceNum',
  },
  {
    label: '提柜',
    value: 'pickupCabinet',
    num: 'pickupCabinetNum',
  },
  {
    label: '拆柜',
    value: 'devanning',
    num: 'devanningNum',
  },
  {
    label: '派送',
    value: 'deliver',
    num: 'deliverNum',
  },
  {
    label: '签收',
    value: 'sign',
    num: 'signNum',
  },
];
// 柜子节点
export const cabinetNodeMaps = [
  {
    label: '开柜',
    value: 'new',
    num: 'newNum',
    next: [{
      label: '装柜',
      value: 'cabinet'
    }]
  },
  {
    label: '装柜',
    value: 'cabinet',
    next: [
      {
        label: '报关',
        value: 'customsDeclare'
      }
    ],
    num: 'cabinetNum',
    statusMaps: [
      {
        label: '装柜',
        value: '0400'
      }
    ]
  },
  {
    label: '报关',
    value: 'customsDeclare',
    next: [
      {
        label: '开船',
        value: 'sail'
      }
    ],
    num: 'declareCustomsNum',
    statusMaps: [
      {
        label: '报关放行',
        value: '0500'
      },
      {
        label: '报关查验',
        value: '0410'
      },
      // {
      //   label: '放行后查验',
      //   value: '0411'
      // },
    ]
  },
  {
    label: '开船',
    value: 'sail',
    next: [
      {
        label: '到港',
        value: 'arrival'
      },
      {
        label: '清关',
        value: 'clearance'
      }
    ],
    num: 'shipNum',
    statusMaps: [
      {
        label: '开船',
        value: '0600'
      },
      {
        label: '延期开船',
        value: '0501'
      },
      {
        label: '转船',
        value: '0510'
      },
      {
        label: '甩柜',
        value: '0511'
      },
    ]
  },
  {
    label: '到港',
    value: 'arrival',
    next: [
      {
        label: '清关',
        value: 'clearance'
      },
      {
        label: '提柜',
        value: 'pickupCabinet'
      }
    ],
    num: 'arrivePortNum',
    statusMaps: [
      {
        label: '到港',
        value: '0620'
      },
      {
        label: '延期到港',
        value: '0601'
      }
    ]
  },
  {
    label: '清关',
    value: 'clearance',
    next: [
      {
        label: '到港',
        value: 'arrival'
      },
      {
        label: '提柜',
        value: 'pickupCabinet'
      },
      {
        label: '清关',
        value: 'clearance',
      }
    ],
    num: 'clearanceNum',
    statusMaps: [
      {
        label: '清关放行',
        value: '0610'
      },
      {
        label: '清关查验',
        value: '0611'
      },
      // {
      //   label: '清关放行后查验',
      //   value: '0612'
      // },
    ]
  },
  {
    label: '提柜',
    value: 'pickupCabinet',
    next: [
      {
        label: '拆柜',
        value: 'devanning'
      }
    ],
    num: 'pickupCabinetNum',
    statusMaps: [
      {
        label: '提柜',
        value: '0700'
      }
    ]
  },
  {
    label: '拆柜',
    value: 'devanning',
    num: 'devanningNum',
    statusMaps: [
      {
        label: '拆柜',
        value: '0720'
      }
    ]
  },
];
// 意向单状态
export const preOrderStatusMaps = [
  {
    label: '待下单',
    value: '0'
  },
  {
    label: '已下单',
    value: '1'
  },
  {
    label: '已取消',
    value: '2'
  }
];
// 订单审核状态
export const orderCheckStatus = [
  {
    label: '待审核',
    value: '1'
  },
  {
    label: '审核通过',
    value: '2'
  },
  {
    label: '审核不通过',
    value: '-1'
  }
];

export default {
  yesOrNo,
  disabledStatus,
  preOrderStatusMaps,
  orderCheckStatus,
  cabinetNodeMaps,
}